package com.house.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.house.dao.TypeDao;
import com.house.pojo.Type;
import com.house.service.TypeService;



@Transactional/*事务提交*/
@Service
public class TypeServiceImpl implements TypeService {
	
	
	
	@Autowired
	private TypeDao typeDao;
	

	@Override
	public Type selectTypeno(String type) {
		// TODO Auto-generated method stub
		return typeDao.selectTypeno(type);
	}

	@Override
	public List<Type> selectType() {
		// TODO Auto-generated method stub
		return typeDao.selectType();
	}

	@Override
	public Type selectTypeName(int typeno) {
		// TODO Auto-generated method stub
		return typeDao.selectTypeName(typeno);
	}

}
